<template>
  <div>
    <div style="display: flex;justify-content: center">
      <slot></slot>
    </div>
  </div>
</template>

<script>



export default {
  name: "TableList",

  props: {
    data:{
      type: Array,
      default: () => []
    }
  },
  computed:{
    myList(){
      return this.data.map((item, index)=>Object.assign(item, {index: index + 1}))
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
